Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse rc.local.d directory on boot #474

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

ben-grande
Copy link
Contributor

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a29270) 69.89% compared to head (e40a621) 69.89%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   69.89%   69.89%           
=======================================
  Files           3        3           
  Lines         475      475           
=======================================
  Hits          332      332           
  Misses        143      143           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@qubesos-bot
Copy link

qubesos-bot commented Nov 29, 2023

OpenQA test summary

Complete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.2&build=2023120304-4.2&flavor=pull-requests

New failures, excluding unstable

Compared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.2&build=2023111404-4.2&flavor=update

  • system_tests_basic_vm_qrexec_gui_zfs

  • system_tests_basic_vm_qrexec_gui_btrfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_222_audio_rec_unmuted_pulseaudio (error)
      qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...

    • TC_20_AudioVM_Pulse_fedora-38-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.13918367346938...

  • system_tests_basic_vm_qrexec_gui@hw1

  • system_tests_basic_vm_qrexec_gui

    • TC_20_NonAudio_debian-12-xfce: test_000_start_shutdown (error + timed out)
      qubes.exc.QubesVMShutdownTimeoutError: Domain shutdown timed out: '...

Failed tests

7 failures
  • system_tests_splitgpg

  • system_tests_basic_vm_qrexec_gui_zfs

  • system_tests_basic_vm_qrexec_gui_btrfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_222_audio_rec_unmuted_pulseaudio (error)
      qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...

    • TC_20_AudioVM_Pulse_fedora-38-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.13918367346938...

  • system_tests_basic_vm_qrexec_gui@hw1

  • system_tests_basic_vm_qrexec_gui

    • TC_20_NonAudio_debian-12-xfce: test_000_start_shutdown (error + timed out)
      qubes.exc.QubesVMShutdownTimeoutError: Domain shutdown timed out: '...

Fixed failures

Compared to: https://openqa.qubes-os.org/tests/85616#dependencies

6 fixed
  • system_tests_pvgrub_salt_storage

    • TC_41_HVMGrub_fedora-38-xfce: test_000_standalone_vm (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

    • TC_41_HVMGrub_fedora-38-xfce: test_010_template_based_vm (error)
      qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seco...

  • system_tests_splitgpg

  • system_tests_devices

    • TC_00_List_debian-12-xfce: test_001_list_loop_mounted (failure)
      AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
  • system_tests_basic_vm_qrexec_gui_zfs

    • TC_20_AudioVM_Pulse_debian-12-xfce-pool: test_223_audio_play_hvm (failure)
      AssertionError: too short audio, expected 10s, got 9.35730158730158...
  • system_tests_basic_vm_qrexec_gui_ext4

Unstable tests

  • system_tests_splitgpg

    TC_10_Thunderbird_debian-12-xfce/test_000_send_receive_default (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_fedora-38-xfce/test_000_send_receive_default (2/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85646 Exception: Failed to send message with error 'unknown'
    TC_10_Thunderbird_whonix-workstation-17/test_000_send_receive_default (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_debian-12-xfce/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_fedora-38-xfce/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_whonix-workstation-17/test_010_send_receive_inline_signed_only (1/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    TC_10_Thunderbird_debian-12-xfce/test_020_send_receive_inline_with_attachment (2/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85328 Exception: Failed to send message with error 'unknown'
    TC_10_Thunderbird_fedora-38-xfce/test_020_send_receive_inline_with_attachment (3/5 times with errors)
    • job 84710 dogtail.tree.SearchError: descendent of [application | Thunderbird]...
    • job 85117 Exception: Failed to send message with error 'unknown'
    • job 86105 Exception: Failed to send message with error 'unknown'
  • system_tests_usbproxy

    TC_20_USBProxy_core3_debian-12-xfce/test_070_attach_not_installed_front (1/5 times with errors)
    • job 85091 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
    TC_20_USBProxy_core3_whonix-gateway-17/test_070_attach_not_installed_front (1/5 times with errors)
    • job 85302 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
    TC_20_USBProxy_core3_whonix-workstation-17/test_070_attach_not_installed_front (1/5 times with errors)
    • job 84684 qubesusbproxy.core3ext.QubesUSBException: Device attach failed: 202...
  • system_tests_devices

    TC_00_List_debian-12-xfce/test_001_list_loop_mounted (3/5 times with errors)
    • job 84700 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
    • job 85318 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
    • job 85636 AssertionError: Device test-inst-vm:loop0 (/tmp/test.img) should no...
  • system_tests_whonix@hw1

    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/Failed (1/5 times with errors)
    • job 84081 # Test died: no candidate needle with tag(s) 'desktop-clear' matche...
  • system_tests_basic_vm_qrexec_gui_zfs

    TC_00_Basic/test_120_start_standalone_with_cdrom_dom0 (1/5 times with errors)
    • job 85304 AssertionError: 1 != 0 : b'Timeout waiting for dom0:loop4 device to...
    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 84686 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_223_audio_play_hvm (1/5 times with errors)
    • job 85622 AssertionError: too short audio, expected 10s, got 9.35730158730158...
  • system_tests_basic_vm_qrexec_gui_ext4

    TC_20_AudioVM_Pulse_debian-12-xfce-pool/test_222_audio_rec_unmuted_pulseaudio (1/5 times with errors)
    • job 85648 qubes.exc.QubesVMError: Failed to attach audio input from dom0 to t...
  • system_tests_basic_vm_qrexec_gui_xfs

    TC_20_NonAudio_whonix-gateway-17-pool/test_300_bug_1028_gui_memory_pinning (1/5 times with errors)
    • job 86094 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_basic_vm_qrexec_gui@hw1

    TC_20_AudioVM_Pulse_debian-12-xfce/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 86091 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_NonAudio_whonix-gateway-17/test_300_bug_1028_gui_memory_pinning (2/5 times with errors)
    • job 85314 AssertionError: Dom0 window doesn't match VM window content, saved ...
    • job 86091 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_basic_vm_qrexec_gui

    TC_20_AudioVM_Pulse_debian-12-xfce/test_220_audio_play_pulseaudio (1/5 times with errors)
    • job 86091 AssertionError: Command 'paplay --format=float32le --rate=44100 --c...
    TC_20_NonAudio_whonix-gateway-17/test_300_bug_1028_gui_memory_pinning (2/5 times with errors)
    • job 85314 AssertionError: Dom0 window doesn't match VM window content, saved ...
    • job 86091 AssertionError: Dom0 window doesn't match VM window content, saved ...
  • system_tests_whonix

    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/ (1/5 times with errors)
    whonix_torbrowser/Failed (1/5 times with errors)
    • job 84081 # Test died: no candidate needle with tag(s) 'desktop-clear' matche...

@ben-grande
Copy link
Contributor Author

Maybe I am late because OpenQA has already run but should I only parse files with extensions like .conf? Although it is a script, a extension might be useful to avoid parsing unwanted files...

  • qubes-bind-dirs.d uses .conf
  • qubes-firewall.d doesn't check extension

@marmarek
Copy link
Member

marmarek commented Dec 1, 2023

Although it is a script, a extension might be useful to avoid parsing unwanted files...

Generally it's a good idea, maybe just .sh? I find it weird to have arbitrary script with .conf (I know bind-dirs is such a case already, but it's supposed to configure specific variable, not run arbitrary commands, even if technically it's possible). Alternatively, require files to be executable, but that may be not enough to prevent running .bak, .rpmsave etc files...

@ben-grande
Copy link
Contributor Author

ben-grande commented Dec 1, 2023 via email

@marmarek
Copy link
Member

marmarek commented Dec 1, 2023

What do you think of ".rc"?

Sounds okay.

@marmarek marmarek merged commit ef3b3d5 into QubesOS:main Dec 4, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants